package com.rec.smile.chemical.mapper;

import com.rec.smile.chemical.bo.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    int add(User user);

    @Select(" select * from user limit #{offset},#{limitNum}")
    List<User> selectUsers(@Param("offset") int offset,@Param("limitNum") int limitNum);
}